function Person(name,age){
  
    this.name=name;
    this.age=age;
// this.args=args
}
Person.prototype =  {
    say:function (){
        console.log('hello');
    },
    back:function(){
        console.log('back');
    }
}

function myNew(fn,...args){
//arguments
// console.log(arguments);
let obj = Object.create(fn.prototype);
fn.call(obj,...args)//call 手动指定函数内部指针指向obj
return obj;
}


let p1 = myNew(Person,'袁静', 18,'hh')
console.log(Object.keys(p1),p1.__proto__)